package com.hyt.it.ogt.ks.enums;

import lombok.Getter;


@Getter
public enum ApplyCheckSkipTypeCode {
    ID_FACE("idFace", "人脸核身跳过申请"),
    DEVICE_CHECK("deviceCheck", "设备检测跳过申请"),
    MANUAL_REVIEW_FACE_APPLY("manualReviewFaceApply", "人脸跳过审核申请");

    private String code;
    private String msg;

    public static ApplyCheckSkipTypeCode getMsg(String code) {
        for (ApplyCheckSkipTypeCode value : ApplyCheckSkipTypeCode.values()) {
            if(value.getCode().equals(code)) {
                return value;
            }
        }
        return null;
    }
    ApplyCheckSkipTypeCode(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
